<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/12/21
 * Time: 11:43
 */

use Kinfy\Event;

Event::addListener(Event::ON_ARTICLE_READ, function (&$data) {

    foreach ($data as &$v) {
        $v['title'] = str_replace('马化腾', '***', $v['title']);
    }

});
